define('formQuit',['text!../tpl/form-quit.html','tool','common'],function(Template,tool,common){
    var App ={
    	template:Template,
    	mixins: [tool.toor,common.common],
    	data:function(){
    		return{
    			submitJson:{
				    "component": [
					    {
	    			   	  "name":"离职原因",
	    			   	  "value":''
	    			   },
	    			   {
	    			   	   "name": "离职日期",
					       "value": ''
	    			   },
	    			   {
	    			   	 "name": "交接人",
					     "value": ''
	    			   }
				    ]
				}
    		};
    	},
    	watch:
    	{
    		
    	},
    	methods:
    	{
    		getHandover:function(data)
    		{
    			 this.submitJson.component[2].value=data.name?(data.name):'';
    		}
    	}
    };
    return {
        app:App       
    };
});